package com.feng.api.client;

import com.feng.api.client.fallback.OrderRemoteClientFallback;
import com.feng.api.client.fallback.UserRemoteClientFallbackFactory;
import com.feng.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Description:
 * User: zhangyinglong
 * Date: 2021-04-18
 * Time: 23:44
 */
//@FeignClient(value = "order-server",configuration = FeignConfiguration. class)
//@FeignClient(value = "order-server",configuration = FeignConfiguration. class,fallback = OrderRemoteClientFallback.class)
@FeignClient(value = "order-server",configuration = FeignConfiguration. class,fallbackFactory = UserRemoteClientFallbackFactory.class)
public interface OrderRemoteClient {
    @GetMapping("/order/info")
    String orderInfo();
}
